package day02;

public class demo03 {
    public static void main(String[] args) {
        String str = "158 4747  5565";
        boolean b = str.matches("\\d{3}\\s?\\d{4}\\s?\\s?\\d{4}");
        System.out.println(b);
    }
}
